From 73349217f090eb5d657107ed95099ee55a104007 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 5 Aug 2005 09:00:50 +0000 Subject: [PATCH] xc_console is probably too chatty about termios failures since ssh sessions apparently don't have proper term settings. Signed-off-by: Anthony Liguori --- tools/consoled/xc_console.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tools/consoled/xc_console.c b/tools/consoled/xc_console.c index 91fe89bf72..dab250baa8 100644 --- a/tools/consoled/xc_console.c +++ b/tools/consoled/xc_console.c @@ -78,23 +78,18 @@ static void init_term(int fd, struct termios *old) struct termios new_term; if (tcgetattr(fd, old) == -1) { - perror("tcgetattr() failed"); return; } new_term = *old; cfmakeraw(&new_term); - if (tcsetattr(fd, TCSAFLUSH, &new_term) == -1) { - perror("tcsetattr() failed"); - } + tcsetattr(fd, TCSAFLUSH, &new_term); } static void restore_term(int fd, struct termios *old) { - if (tcsetattr(fd, TCSAFLUSH, old) == -1) { - perror("tcsetattr() failed"); - } + tcsetattr(fd, TCSAFLUSH, old); } static int console_loop(int xc_handle, domid_t domid, int fd) @@ -113,7 +108,6 @@ static int console_loop(int xc_handle, domid_t domid, int fd) if (errno == EINTR || errno == EAGAIN) { continue; } - perror("select() failed"); return -1; } @@ -131,7 +125,6 @@ static int console_loop(int xc_handle, domid_t domid, int fd) (errno == EINTR || errno == EAGAIN)) { continue; } - perror("select() failed"); return -1; } @@ -151,7 +144,6 @@ static int console_loop(int xc_handle, domid_t domid, int fd) (errno == EINTR || errno == EAGAIN)) { continue; } - perror("select() failed"); return -1; } -- 2.30.2